import { lazy } from "react";
let routerList = [
    {
        path:"/home",
        component:lazy(()=>import("../page/home.jsx"))
    },
    {
        path:"/detail",
        component:lazy(()=>import("../page/detail.jsx"))
    },
    {
        path:"/shopcar",
        component:lazy(()=>import("../page/shopcar.jsx"))
    },
    {
        path:"/address",
        component:lazy(()=>import("../page/address.jsx"))
    },
    {
        path:"/pull",
        component:lazy(()=>import("../page/pull.js"))
    },
    {
        path:"/pinglun",
        component:lazy(()=>import("../page/pinglun"))
    },
    {
        path:"/pulldetail/:id", // 动态路由
        component:lazy(()=>import("../page/pullDeatl"))
    },
    {
        path:"/gundong", // 动态路由
        component:lazy(()=>import("../page/gundong"))
    },
    {
        path:"/gundong1", // 动态路由
        component:lazy(()=>import("../page/gundong1"))
    },

    {
        to:"/home",
        from:"/"
    }
]
export default routerList